import Vuex from 'vuex'
import Vue from 'vue'
import home from './modules/home'
import secher from './modules/secher'
import user from './modules/user'
import detail from './modules/detail'
import shopCart from './modules/shopCart'

//调用插件
Vue.use(Vuex)

export default new Vuex.Store({
    //modules 获取小仓库
    modules:{
        home,
        secher,
        user,
        detail,
        shopCart
    }
})